package com.beiju.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 商家信息表
 * </p>
 *
 * @author beiju
 * @since 2021-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_business")
@ApiModel(value="Business对象", description="商家信息表")
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商家名称")
    private String title;

    @ApiModelProperty(value = "商家图标路径")
    private String icon;

    @ApiModelProperty(value = "优惠券列表")
    @TableField(exist = false)
    private List<Coupon> coupon;
}
